package edu.gyc.collectionhomework;

import java.util.Collections;
import java.util.HashMap;
import java.util.Objects;

class Girl{
    private int id;
    private String name;

    public Girl(int id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return "girl{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }


}
public class HiMap {
    public static void main(String[] args) {
        HashMap<Girl, Integer> girlMap = new HashMap<Girl, Integer>();
        girlMap.put(new Girl(1, "周慧敏"), 900);
        girlMap.put(new Girl(2, "徐睿"), 900);
        girlMap.put(new Girl(1, "周慧敏"), 900);
        System.out.println(girlMap);
    }
}
